/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bcamone.bluetooth;

import java.util.Vector;

/**
 *
 * @author Administrator
 */
public interface InitBluetooth {
    
    /**
     * Search for bluetoothdevices
     * @return ArrayList with founded divices
     */

    Vector searchDevices();
    
    /**
     * establishes connection to device
     * @param _device
     * @return ID of the connection
     */
    
    int doConnect(String _device);
    
    /**
     * Return State of Connection
     * @param _ID ConnectionID
     * @return true if connected
     */
    
    boolean getState(int _ID);
    
    /**
     * Send startsignal to device
     * @param _ID ConnectionID
     * @return true if succeeded
     */
    
    boolean sendStart(int _ID);
    
    /**
     * Send stopsignal to device
     * @param _ID ConnectionID
     * @return true if succeeded
     */
    
    boolean sendStop(int _ID);
    
}
